package com.example.demo;

import com.example.demo.model.ReadList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserComponent {
    //YML集合读取对象
    @Autowired
    private ReadList readList;

    @RequestMapping("/test")
    public String func() {
        return "ReadList"+readList.getName();
    }


}
